<template>
  <div>
    <h1>单项数据流</h1>
    <el-button @click="changeCount"></el-button>
<!--    {{count}}-->
    {{initCount}}
  </div>
</template>

<script>
export default {
  name: 'child-test',
  props: {
    count: String || Number
  },
  data () {
    return {
      initCount: this.count
    }
  },
  computed: {
    initCount2 () {
      return this.initCount
    }
  },
  methods: {
    /** error */
    // changeCount () {
    //   this.count++
    // },
    /** yes */
    changeCount () {
      this.initCount++
    }
  }
}
</script>

<style scoped>

</style>
